trigger IntentProductTrigger on IntentProduct__c(after insert,after delete,after update,before insert,before update)
{
    // new Triggers()
    // .bind(Triggers.Evt.afterinsert, new IntentProductHandler())
    // .bind(Triggers.Evt.afterupdate, new IntentProductHandler())
    // .bind(Triggers.Evt.afterdelete, new IntentProductHandler())
    // .manage();

    if(Trigger.isInsert || Trigger.isUpdate){

        if(Trigger.isAfter)IntentProductHandler.setOppProjectType(Trigger.new);
        //if(Trigger.isBefore)IntentProductHandler.setfield(Trigger.new);
    }
    if(Trigger.isDelete){
        IntentProductHandler.setOppProjectType(Trigger.old);
    }
}